home *** CD-ROM | disk | FTP | other *** search
- -- card: 17447 from stack: in
- -- bmap block id: 19648
- -- flags: 4000
- -- background id: 7050
- -- name: operands
-
-
- -- part 1 (field)
- -- low flags: 01
- -- high flags: 0007
- -- rect: left=2 top=26 right=314 bottom=511
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 22
- -- text size: 10
- -- style flags: 0
- -- line height: 13
- -- part name: doc
-
-
- -- part contents for card part 1
- ----- text -----
- The BNF for operands is as follows:
-
- operand := [#]FACT fact_id |
- global_id |
- real_number |
- integer |
- boolean |
- quoted_string |
- simple_string |
- "?" | ? | "*" | * | ""
-
- Operands are evaluated as follows:
-
- [#]FACT fact_id -- a fact. ex. FACT "fact 1". If the immediate
- -- operator (#) is used, the fact will be
- -- used as is. In other words, the
- -- inference engine will not try to find
- -- a value for a fact that is not asserted
- -- when evaluating the clause.
- global_id -- the value of a global (must have
- -- been declared global)
- real_number -- a real number. ex. 1.5
- integer -- an integer number. ex. 11
- boolean -- either TRUE or FALSE
- quoted_string -- a quoted string. ex. "this is a string"
- simple_string -- a simple string. ex. string1 (no spaces allowed)
- "?" or ? -- "unknown" if applied to a fact (fact will evaluate
- -- false unless compared equal to unknown).
- -- Otherwise, considered a string.
- "*" or * -- "don't care" if applied to a fact or compared
- -- to a fact (fact will always evaluate true).
- -- Otherwise, considered a string.
- "" -- "not asserted" if applied to a fact. Otherwise,
- -- considered a null string.
-
-